#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <QString>

#include "xmlerror.h"

namespace Avd {

class Config {
public:
	Config(const QString& filename);


	void load() throw(XmlError);

	QString getUser() const { return user; }
	QString getPassword() const { return password; }
	QString getServerUrl() const { return serverUrl; }
	QString getDisk() const { return disk; }
	short unsigned int getPort() const { return port; }

private:
	QString filename;

	QString user;
	QString password;
	QString serverUrl;
	QString disk;
	short unsigned int port;
};

}

#endif
